<?php
namespace B2c\Controllers;
class AdminController extends ControllerBase
{

    public function indexAction()
    {
        //Check if the variable is defined
        if ($this->session->has("B2C_Admin_Login")) {
            //Retrieve its value
            $name = $this->session->get("B2C_Admin_Login");
        }else{
            $this->dispatcher->forward(array(
                    "action" => "login"
            ));            
        }

    }
    public function loginAction()
    {
         //_p($this->view);
         //echo $this->view->render('admin/index');
    }
}

